package com.study.pojo;

import java.util.Date;
import java.util.Objects;

/**
 * @PackgeName: com.study.pojo
 * @ClassName: AwardInfo
 * @Author: 严志祥
 * Date: 2022-05-04 15:36
 * project name: web_project_medal
 * @Version:
 * @Description:
 */
public class AwardInfo {
    private Integer awardId;
    private Integer sportingId;
    private Integer athletesId;
    private Integer awardRanking;
    private String awardGrade;
    private Date awardDate;

    public AwardInfo() {
    }

    public AwardInfo(Integer sportingId, Integer athletesId, Integer awardRanking, String awardGrade, Date awardDate) {
        this.sportingId = sportingId;
        this.athletesId = athletesId;
        this.awardRanking = awardRanking;
        this.awardGrade = awardGrade;
        this.awardDate = awardDate;
    }

    public AwardInfo(Integer awardId, Integer sportingId, Integer athletesId, Integer awardRanking, String awardGrade, Date awardDate) {
        this.awardId = awardId;
        this.sportingId = sportingId;
        this.athletesId = athletesId;
        this.awardRanking = awardRanking;
        this.awardGrade = awardGrade;
        this.awardDate = awardDate;
    }

    public Integer getAwardId() {
        return awardId;
    }

    public void setAwardId(Integer awardId) {
        this.awardId = awardId;
    }

    public Integer getSportingId() {
        return sportingId;
    }

    public void setSportingId(Integer sportingId) {
        this.sportingId = sportingId;
    }

    public Integer getAthletesId() {
        return athletesId;
    }

    public void setAthletesId(Integer athletesId) {
        this.athletesId = athletesId;
    }

    public Integer getAwardRanking() {
        return awardRanking;
    }

    public void setAwardRanking(Integer awardRanking) {
        this.awardRanking = awardRanking;
    }

    public String getAwardGrade() {
        return awardGrade;
    }

    public void setAwardGrade(String awardGrade) {
        this.awardGrade = awardGrade;
    }

    public Date getAwardDate() {
        return awardDate;
    }

    public void setAwardDate(Date awardDate) {
        this.awardDate = awardDate;
    }

    @Override
    public String toString() {
        return "AwardInfo{" +
                "awardId=" + awardId +
                ", sportingId=" + sportingId +
                ", athletesId=" + athletesId +
                ", awardRanking=" + awardRanking +
                ", awardGrade='" + awardGrade + '\'' +
                ", awardDate=" + awardDate +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        AwardInfo awardInfo = (AwardInfo) o;
        return Objects.equals(awardId, awardInfo.awardId) && Objects.equals(sportingId, awardInfo.sportingId) && Objects.equals(athletesId, awardInfo.athletesId) && Objects.equals(awardRanking, awardInfo.awardRanking) && Objects.equals(awardGrade, awardInfo.awardGrade) && Objects.equals(awardDate, awardInfo.awardDate);
    }

    @Override
    public int hashCode() {
        return Objects.hash(awardId, sportingId, athletesId, awardRanking, awardGrade, awardDate);
    }
}
